//
//  Community.h
//  Four_Fit
//
//  Created by lanou on 16/7/13.
//  Copyright © 2016年 xmaz. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef enum {
    CellTypeAll = 0,
    CellType = 1
} GQCellType;


@class comment;

@interface Community : NSObject

/** 作者名字 */
@property (nonatomic, strong) NSString *username;
/** 作者id */
@property (nonatomic, strong) NSString *ID;
/** 作者头像 */
@property (nonatomic, strong) NSString *userpic;
/** 标题 */
@property (nonatomic, strong) NSString *title;
/** 发表时间 */
@property (nonatomic, strong) NSString *createtime;
/** 内容 */
@property (nonatomic, strong) NSString *content;
/** 评论数组 */
@property (nonatomic, strong) NSArray *items;
/** 图片数组 */
@property (nonatomic, strong) NSArray *pic;
/** 帖子的类型 */
@property (nonatomic, assign) GQCellType type;


/** cell的高度 */
@property (nonatomic, assign) CGFloat cellHeight;
/** 图片控件的frame */
@property (nonatomic, assign, readonly) CGRect pictureViewFrame;
/** 评论数据所占的高度 */
@property (nonatomic, assign) CGFloat commentViewH;

@end
